﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="u_Denghiden.ascx.cs" Inherits="cms_Admin_Denghi_u_Denghiden" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<div class="titad">DANH SÁCH ĐỀ NGHỊ GỬI ĐẾN</div>
<asp:Panel ID="pnDanhsach" runat="server">
<div class="add">
    <asp:Label ID="lblThongbao" runat="server" 
        style="font-family: Tahoma; font-size: 8pt; color: #FF0000"></asp:Label>
</div>
<table class="Tableadmins" width="100%" border="1">
<asp:UpdatePanel ID="upesort" runat="server">
<ContentTemplate>
<tr class="Headadmin" style="height:25px">
    <td style="width:3%" class="contentadmin">No</td>
    <td class="contentadmin">Tiêu đề đề nghị
                <asp:LinkButton ID="ltrTieudetangdan" runat="server" CssClass="asc" 
            ToolTip="Sắp xếp tiêu đề tăng dần" onclick="ltrTieudetangdan_Click"></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtTieudegiamdan" runat="server" CssClass="desc" 
            ToolTip="Sắp xếp tiêu đề giảm dần" onclick="lbtTieudegiamdan_Click"></asp:LinkButton>
    </td>
    <td style="width:9%" class="contentadmin">Ngày gửi
        <asp:LinkButton ID="lbtTang" runat="server" CssClass="asc" ToolTip="Sắp xếp ngày gửi tăng dần" onclick="lbtTang_Click"></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtGiam" runat="server" CssClass="desc" ToolTip="Sắp xếp ngày gửi giảm dần" onclick="lbtGiam_Click"></asp:LinkButton>
            </td>
    <td style="width:18%" class="contentadmin">Người gửi 
        <asp:LinkButton ID="lbtNguoinhantang" runat="server" CssClass="asc" 
            ToolTip="Sắp xếp người nhận tăng dần" onclick="lbtNguoinhantang_Click"></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtNguoinhangiam" runat="server" CssClass="desc" 
            ToolTip="Sắp xếp người nhận giảm dần" onclick="lbtNguoinhangiam_Click"></asp:LinkButton>
    </td>
    <td style="width:8%" class="contentadmin">Tình trạng
                        <asp:LinkButton ID="lbtTinhtrangtang" runat="server" CssClass="asc" 
            ToolTip="Sắp xếp tình trạng tăng dần" onclick="lbtTinhtrangtang_Click"></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtTinhtranggiam" runat="server" CssClass="desc" 
            ToolTip="Sắp xếp tình trạng giảm dần" onclick="lbtTinhtranggiam_Click"></asp:LinkButton>
    </td>
    <td style="width:10%" class="contentadmin" colspan="2">Chức năng</td>
</tr>
 </ContentTemplate>
</asp:UpdatePanel>
<asp:Repeater ID="rptDanhsach" runat="server" onitemcommand="rptDanhsach_ItemCommand">
<ItemTemplate>
<tr style="height:20px" class="tr_while" onmouseover="this.className='tr_while_over'" onmouseout="this.className='tr_while'">
    <td align="center" class="contentadmin"><asp:Label ID="lblorder" runat="server"></asp:Label></td>
    <td align="left" style="padding-left:5px" class="contentadmin"><%#DataBinder.Eval(Container.DataItem, "prName")%></td>
    <td align="left" style="padding-left:5px" class="contentadmin"><%#FormatDate(DataBinder.Eval(Container.DataItem, "prSendDate").ToString())%></td>
    <td align="left" style="padding-left:5px" class="contentadmin"><%#Viewnguoinhan(DataBinder.Eval(Container.DataItem, "prID").ToString())%></td>
    <td align="center" style="padding-right:2px" class="contentadmin"><%#Status(DataBinder.Eval(Container.DataItem, "prStatus").ToString())%></td>
    <td style="width:5%" align="center" class="atd"><asp:LinkButton CssClass="edit" ID="LinkButton1" Runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"prID")%>' CommandName="Edit" ToolTip="Xem chi tiết">Xem</asp:LinkButton></td>
    <td style="width:5%" align="center" class="atd"><asp:LinkButton CssClass="postpos" ID="lbt2" Runat="server" OnLoad="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"prID")%>' Visible='<%#AHClass(DataBinder.Eval(Container.DataItem, "prStatus").ToString())%>' CommandName="Duyet" ToolTip="Duyệt đề nghị">Duyệt</asp:LinkButton></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="false">
<table class="Tables">
        <tr style="background: #eef4f8; height: 20px"><td colspan="2"></td></tr>
        <tr style="background: #eef4f8">
            <td class="leftdn" style="border-bottom: 1px dotted #ffefcc"><asp:Label ID="lblNguoinhan1" runat="server" CssClass="lbtitle" Text="Người đề nghị:"></asp:Label></td>
            <td class="lerightdn" style="border-left: 1px dotted #fdd6ad; border-bottom: 1px dotted #ffefcc">
                <asp:Label ID="lblNguoinhan" runat="server"></asp:Label>
                <asp:Label ID="lblIDnguoigui" runat="server" Visible="false"></asp:Label>
            </td>
        </tr>
                <tr style="background: #eef4f8">
                    <td class="leftdn" style="border-bottom: 1px dotted #ffefcc"><asp:Label ID="Label14" runat="server" CssClass="lbtitle" Text="Phòng ban:"></asp:Label></td>
                    <td class="lerightdn" style="border-left: 1px dotted #fdd6ad; border-bottom: 1px dotted #ffefcc">
                        <asp:Label ID="lblPhongban" runat="server"></asp:Label>
                    </td>
        </tr>
        <tr style="background: #eef4f8">
            <td class="leftdn" style="border-bottom: 1px dotted #ffefcc"><asp:Label ID="Label15" runat="server" CssClass="lbtitle" Text="Chức vụ:"></asp:Label></td>
            <td class="lerightdn" style="border-left: 1px dotted #fdd6ad; border-bottom: 1px dotted #ffefcc">
                <asp:Label ID="lblChucvu" runat="server"></asp:Label>
            </td>
        </tr>
        <tr style="background: #eef4f8">
            <td class="leftdn"><asp:Label ID="Label16" runat="server" CssClass="lbtitle" Text="Điện thoại:"></asp:Label></td>
            <td class="lerightdn" style="border-left: 1px dotted #fdd6ad">
                <asp:Label ID="lblTell" runat="server"></asp:Label>
            </td>
        </tr>
         <tr style="background: #eef4f8">
            <td class="leftdn"><asp:Label ID="Label1" runat="server" CssClass="lbtitle" Text="Email:"></asp:Label></td>
            <td class="lerightdn" style="border-left: 1px dotted #fdd6ad">
                <asp:Label ID="lblEmail" runat="server"></asp:Label>
            </td>
        </tr>
        <tr style="background: #eef4f8; height: 10px"><td colspan="2" style="border-bottom: 1px dotted #fdd6ad"></td></tr>
                <tr>
            <td class="lerightdn" colspan="2">
            <div class="titledenghi">
                <asp:Label ID="lblTieude" runat="server"></asp:Label>
                </div>
            </td>
        </tr>
        <tr>
        <td colspan="2">
        <asp:Repeater ID="rptSub" runat="server">
        <ItemTemplate>
            <table border="0" style="border-collapse: collapse; margin-bottom: 10px; margin-right: 10px">
                <tr>
                    <td class="lefttop"></td>
                    <td class="centertop"></td>
                    <td class="righttop"></td>
                </tr>
                <tr>
                    <td class="leftmid"></td>
                    <td align="left">
                        <div style="text-align: left; margin-bottom: 10px; padding-bottom: 5px">
                            <div class='<%#ViewClass(DataBinder.Eval(Container.DataItem, "reType").ToString())%>'>&nbsp;</div>
                            <div class="datesend"><%#DataBinder.Eval(Container.DataItem, "peSendDate")%></div>
                        </div>
                        <div class="usend">Người gửi: <%#NameUser(DataBinder.Eval(Container.DataItem, "uSend").ToString())%></div>
                        <div class="clear"></div>
                        <div class="contentdenghi">
                            <%#DataBinder.Eval(Container.DataItem, "reContent")%>
                        </div>
                        <div class="contentdenghi">
                            <a class="links" href='<%#DataBinder.Eval(Container.DataItem, "peFiles")%>'><%#DataBinder.Eval(Container.DataItem, "peFiles")%></a>
                        </div>
                    </td>
                    <td class="rightmid"></td>
                </tr>
                <tr>
                    <td class="leftbuttom"></td>
                    <td class="centerbuttom"></td>
                    <td class="rightbuttomp"></td>
                </tr>
            </table>
         </ItemTemplate>
        </asp:Repeater>
        </td>
        </tr>
    </table>
    <div  style="background: #f3f3f3; padding: 7px; text-align: left; margin: 5px 0px 5px 0px">
        <asp:LinkButton ID="lbtPhanhoi" runat="server" CssClass="tuchoi" 
                    onclick="lbtPhanhoi_Click">Phản hồi</asp:LinkButton>
                    &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="lbtDuyet" runat="server" 
            CssClass="update" onclick="lbtDuyet_Click">Duyệt lên cấp trên</asp:LinkButton>
                    &nbsp;<asp:LinkButton ID="lbtDuyet2" runat="server" CssClass="update" 
            onclick="lbtDuyet2_Click">Duyệt</asp:LinkButton>
        &nbsp;&nbsp;<asp:LinkButton ID="lbtTrolai" runat="server" CssClass="back" 
                        onclick="lbtTrolai_Click">Trở lại</asp:LinkButton>
                        </div> 
    <div style="height:10px"></div>
    <asp:Panel ID="pnPhanhoi" runat="server" Visible="false">
     <table border="0" style="border-collapse: collapse">
                <tr>
                    <td class="lefttop"></td>
                    <td class="centertop"></td>
                    <td class="righttop"></td>
                </tr>
                <tr>
                    <td class="leftmid"></td>
                    <td align="left">
    <table class="Tables">
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label4" runat="server" CssClass="labadd" 
                    Text="Nội dung phản hồi:"></asp:Label>
            </td>
            <td class="lerightadd">
                <FCKeditorV2:FCKeditor ID="fckNoidung" runat="server" BasePath="~/fckeditor/" 
                    Height="250px" Width="700px">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label5" runat="server" CssClass="labadd" Text="File đính kèm:"></asp:Label>
            </td>
            <td class="lerightadd">
                <asp:FileUpload ID="fileupload" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                &nbsp;</td>
            <td class="lerightadd">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="leftadd" 
                style="background: #f3f3f3; height: 28px; padding-top: 4px; padding-bottom: 4px">
                &nbsp;</td>
            <td class="lerightadd" 
                style="background: #f3f3f3; height: 28px; padding-top: 4px; padding-bottom: 4px">
                <asp:LinkButton ID="lbtGuiPhanhoi" runat="server" CssClass="update" 
                    onclick="lbtGuiPhanhoi_Click">Gửi phản hồi</asp:LinkButton>
                &nbsp;<asp:LinkButton ID="lbtHuy" runat="server" CssClass="back" 
                    onclick="lbtHuy_Click">Hủy phản hồi</asp:LinkButton>
                &nbsp;&nbsp;&nbsp;<asp:Label ID="lblLoi" runat="server" 
                    style="font-family: Tahoma; font-size: 8pt; color: #FF0000"></asp:Label>
            </td>
        </tr>
    </table>
    </td>
                    <td class="rightmid"></td>
                </tr>
                <tr>
                    <td class="leftbuttom"></td>
                    <td class="centerbuttom"></td>
                    <td class="rightbuttomp"></td>
                </tr>
            </table>
      </asp:Panel>
    <asp:Panel ID="pnDuyet" runat="server" Visible="false">
     <table border="0" style="border-collapse: collapse">
                <tr>
                    <td class="lefttop"></td>
                    <td class="centertop"></td>
                    <td class="righttop"></td>
                </tr>
                <tr>
                    <td class="leftmid"></td>
                    <td align="left">
    <table class="Tables">
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label2" runat="server" CssClass="labadd" Text="Người nhận:"></asp:Label>
            </td>
            <td class="lerightadd">
                <asp:DropDownList ID="drlNguoinhan" runat="server" 
                    style="font-family: Arial; font-size: 10pt">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label3" runat="server" CssClass="labadd" 
                    Text="Nội dung phản hồi:"></asp:Label>
            </td>
            <td class="lerightadd">
                <FCKeditorV2:FCKeditor ID="fckNoidungduyet" runat="server" BasePath="~/fckeditor/" 
                    Height="250px" Width="700px">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label6" runat="server" CssClass="labadd" Text="File đính kèm:"></asp:Label>
            </td>
            <td class="lerightadd">
                <asp:FileUpload ID="fileupload_duyet" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                &nbsp;</td>
            <td class="lerightadd">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="leftadd" 
                style="background: #f3f3f3; height: 28px; padding-top: 4px; padding-bottom: 4px">
                &nbsp;</td>
            <td class="lerightadd" 
                style="background: #f3f3f3; height: 28px; padding-top: 4px; padding-bottom: 4px">
                <asp:LinkButton ID="lbtGuiduyet" runat="server" CssClass="update" 
                    onclick="lbtGuiduyet_Click">Gửi duyệt</asp:LinkButton>
                &nbsp;<asp:LinkButton ID="lbtTrolaiduyet" runat="server" CssClass="back" 
                    onclick="lbtTrolaiduyet_Click">Trở lại</asp:LinkButton>
                &nbsp;&nbsp;&nbsp;<asp:Label ID="lblLoiguiduyet" runat="server" 
                    style="font-family: Tahoma; font-size: 8pt; color: #FF0000"></asp:Label>
            </td>
        </tr>
    </table>
    </td>
                    <td class="rightmid"></td>
                </tr>
                <tr>
                    <td class="leftbuttom"></td>
                    <td class="centerbuttom"></td>
                    <td class="rightbuttomp"></td>
                </tr>
            </table>
      </asp:Panel>
 </asp:Panel>